{extend name="admin/public:layout" /}
{block name="title"}会议资讯管理{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 会议资讯管理</a></li>
                <li class="active">添加会议资讯</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">标题</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入标题"
                               name="title" value="" datatype="*" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">所属会议</label>
                    <div class="col-sm-4">
                        <select class="form-control" name="meeting_id">
                            <option>请选择所属会议</option>
                            {volist name="meeting" id="vo"}
                            <option value="{$vo.meeting_id}">{$vo.meeting_name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">缩略图</label>
                    <div class="col-sm-8">
                        {:widget('common/Form/singleImg',['thumb','',-2])}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">内容</label>
                    <div class="col-sm-10">
                        {:widget('common/Form/ueditor',['content','',-2])}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">排序</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入排序"
                               name="sort" value="0" datatype="*" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">保存内容</button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        iCheck();
        formatDate();
        ajaxSubForm('#btnSub');
    })
</script>
{/block}